﻿using System;
using System.Collections.Generic;
using System.Linq;
using FastColoredTextBoxNS;

namespace Furesoft.Styling.Design.Style
{
    public class IntellisenseManager
    {
        public static Dictionary<Type, IIntellisenseContext> contexts = new Dictionary<Type, IIntellisenseContext>();

        public static void AddContext(Type prop, IIntellisenseContext ict)
        {
            contexts.Add(prop, ict);
        }
        public static List<AutocompleteItem> GetItems(Type prop)
        {
            return contexts[prop].Init();
        }
    }
  
    public interface IIntellisenseContext
    {
        List<AutocompleteItem> Init();
    }
}
